<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .imgbox {
            width: 127px;
            height: 156px;
            margin: 300px auto;
            background-image: url(sprite1.webp);
             background-position: -15px -16px;  
           
             /* animation-name: anims;
             animation-duration: 3s;
             animation-iteration-count: infinite; 
             animation-timing-function: steps(3,start); */
       
            animation: anims steps(3, start) .5s infinite; 
        }
        @keyframes anims {
             from{
                background-position: -15px -16px;
             }
             to{
                background-position: 370px -16px;
             }
        }
    </style>
</head>

<body>
    <div class="imgbox"></div>
</body>

</html>